#include"lottery_sys.h"
void autochose(L_buyed_t* new_buy)
{	
	if(!new_buy)
	{
		printf("error\n");
		return;
	}
	int i = 0;
	srand((unsigned) time(NULL)); //用时间做种，每次产生随机数不一样
	for (; i < 5; i++)
	{
	(new_buy -> chose_nums)[i] = rand() % 5;  //产生0 - 4的随机数
		printf("%d  ", (new_buy -> chose_nums)[i]);
	}
}
